#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<iostream>
using namespace std;
class score
{
public:
	score()
	{
		_math = 99;
		_english = 98;
	}
	score(const score& s1)
	{
		_math = s1._math;
		_english = s1._english;
	}
	void Print()
	{
		cout << _math << "  " << _english << endl;
	}
private:
	int _math;
	int _english;
};

class person
{
public:
	void Print()
	{
		cout << _name << "  " << _sex << "  " << _age << endl;
	}
	void personset(const char* name, const char* sex, int  age)
		{
			_name = name;
			_sex = sex;
		    _age = age;
		}
private:
	int _age;
	const char* _sex;
	const char* _name;
	score s2;
};
int main()
{
	person d1;
	d1.personset("chen", "man", 20);
	d1.Print();
	person d2(d1);
	d2.Print();
	score s1;
	s1.Print();
	score s2(s1);
	s2.Print();
	return 0;
}
